package com.muyan.design.builder;

import java.util.ArrayList;
import java.util.List;

import com.muyan.design.factory.MailSender;
import com.muyan.design.factory.ISender;
import com.muyan.design.factory.SmsSender;

public class Builder {

    private List<ISender> list = new ArrayList<ISender>();

    public void produceMailSender(int count) {
        for (int i = 0; i < count; i++) {
            list.add(new MailSender());
        }
    }

    public void produceSmsSender(int count) {
        for (int i = 0; i < count; i++) {
            list.add(new SmsSender());
        }
    }
}
